package com.arcsoft.myapplication;

public class Model implements Imodel {
    @Override
    public void getData(final  LoadDataCallback callback) {
new Thread(){
    public void run(){
        try{

            Thread.sleep(2000);
            String data="我是数据";
            callback.success(data);


        }catch (Exception e){
            e.printStackTrace();
        }

    }

}.start();


    }


    public interface LoadDataCallback{


        void success(String id);
    }

}
